package com.ruoyi.product.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 供应商对象 product
 * 
 * @author yyg
 * @date 2023-11-23
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 供货商id */
    private Long pId;

    /** 账号 */
    @Excel(name = "账号")
    private String pAccount;

    /** 密码 */
    @Excel(name = "密码")
    private String pPassword;

    /** 名字 */
    @Excel(name = "名字")
    private String pName;

    /** 状态 */
    private Long pStatus;

    /** 管理员id */
    @Excel(name = "管理员id")
    private Long adminId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /** 是否删除，0表示未删除，1表示已删除 */
    private Long isDelete;

    /** 版本号 */
    private Long version;

    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setpAccount(String pAccount) 
    {
        this.pAccount = pAccount;
    }

    public String getpAccount() 
    {
        return pAccount;
    }
    public void setpPassword(String pPassword) 
    {
        this.pPassword = pPassword;
    }

    public String getpPassword() 
    {
        return pPassword;
    }
    public void setpName(String pName) 
    {
        this.pName = pName;
    }

    public String getpName() 
    {
        return pName;
    }
    public void setpStatus(Long pStatus) 
    {
        this.pStatus = pStatus;
    }

    public Long getpStatus() 
    {
        return pStatus;
    }
    public void setAdminId(Long adminId) 
    {
        this.adminId = adminId;
    }

    public Long getAdminId() 
    {
        return adminId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pId", getpId())
            .append("pAccount", getpAccount())
            .append("pPassword", getpPassword())
            .append("pName", getpName())
            .append("pStatus", getpStatus())
            .append("adminId", getAdminId())
            .append("createBy", getCreateBy())
            .append("createDate", getCreateDate())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("isDelete", getIsDelete())
            .append("version", getVersion())
            .toString();
    }
}
